package com.eshop.tools.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("alipay_config")
public class AlipayConfig implements Serializable
{
    @TableId
    private Long id;
    private String appId;
    private String charset;
    private String format;
    private String gatewayUrl;
    private String notifyUrl;
    private String privateKey;
    private String publicKey;
    private String returnUrl;
    private String signType;
    private String sysServiceProviderId;
    
    public void copy(final AlipayConfig source) {
        BeanUtil.copyProperties((Object)source, (Object)this, CopyOptions.create().setIgnoreNullValue(true));
    }
    
    public Long getId() {
        return this.id;
    }
    
    public String getAppId() {
        return this.appId;
    }
    
    public String getCharset() {
        return this.charset;
    }
    
    public String getFormat() {
        return this.format;
    }
    
    public String getGatewayUrl() {
        return this.gatewayUrl;
    }
    
    public String getNotifyUrl() {
        return this.notifyUrl;
    }
    
    public String getPrivateKey() {
        return this.privateKey;
    }
    
    public String getPublicKey() {
        return this.publicKey;
    }
    
    public String getReturnUrl() {
        return this.returnUrl;
    }
    
    public String getSignType() {
        return this.signType;
    }
    
    public String getSysServiceProviderId() {
        return this.sysServiceProviderId;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setAppId(final String appId) {
        this.appId = appId;
    }
    
    public void setCharset(final String charset) {
        this.charset = charset;
    }
    
    public void setFormat(final String format) {
        this.format = format;
    }
    
    public void setGatewayUrl(final String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }
    
    public void setNotifyUrl(final String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
    
    public void setPrivateKey(final String privateKey) {
        this.privateKey = privateKey;
    }
    
    public void setPublicKey(final String publicKey) {
        this.publicKey = publicKey;
    }
    
    public void setReturnUrl(final String returnUrl) {
        this.returnUrl = returnUrl;
    }
    
    public void setSignType(final String signType) {
        this.signType = signType;
    }
    
    public void setSysServiceProviderId(final String sysServiceProviderId) {
        this.sysServiceProviderId = sysServiceProviderId;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AlipayConfig)) {
            return false;
        }
        final AlipayConfig other = (AlipayConfig)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$appId = this.getAppId();
        final Object other$appId = other.getAppId();
        Label_0102: {
            if (this$appId == null) {
                if (other$appId == null) {
                    break Label_0102;
                }
            }
            else if (this$appId.equals(other$appId)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$charset = this.getCharset();
        final Object other$charset = other.getCharset();
        Label_0139: {
            if (this$charset == null) {
                if (other$charset == null) {
                    break Label_0139;
                }
            }
            else if (this$charset.equals(other$charset)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$format = this.getFormat();
        final Object other$format = other.getFormat();
        Label_0176: {
            if (this$format == null) {
                if (other$format == null) {
                    break Label_0176;
                }
            }
            else if (this$format.equals(other$format)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$gatewayUrl = this.getGatewayUrl();
        final Object other$gatewayUrl = other.getGatewayUrl();
        Label_0213: {
            if (this$gatewayUrl == null) {
                if (other$gatewayUrl == null) {
                    break Label_0213;
                }
            }
            else if (this$gatewayUrl.equals(other$gatewayUrl)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$notifyUrl = this.getNotifyUrl();
        final Object other$notifyUrl = other.getNotifyUrl();
        Label_0250: {
            if (this$notifyUrl == null) {
                if (other$notifyUrl == null) {
                    break Label_0250;
                }
            }
            else if (this$notifyUrl.equals(other$notifyUrl)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$privateKey = this.getPrivateKey();
        final Object other$privateKey = other.getPrivateKey();
        Label_0287: {
            if (this$privateKey == null) {
                if (other$privateKey == null) {
                    break Label_0287;
                }
            }
            else if (this$privateKey.equals(other$privateKey)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$publicKey = this.getPublicKey();
        final Object other$publicKey = other.getPublicKey();
        Label_0324: {
            if (this$publicKey == null) {
                if (other$publicKey == null) {
                    break Label_0324;
                }
            }
            else if (this$publicKey.equals(other$publicKey)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$returnUrl = this.getReturnUrl();
        final Object other$returnUrl = other.getReturnUrl();
        Label_0361: {
            if (this$returnUrl == null) {
                if (other$returnUrl == null) {
                    break Label_0361;
                }
            }
            else if (this$returnUrl.equals(other$returnUrl)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$signType = this.getSignType();
        final Object other$signType = other.getSignType();
        Label_0398: {
            if (this$signType == null) {
                if (other$signType == null) {
                    break Label_0398;
                }
            }
            else if (this$signType.equals(other$signType)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$sysServiceProviderId = this.getSysServiceProviderId();
        final Object other$sysServiceProviderId = other.getSysServiceProviderId();
        if (this$sysServiceProviderId == null) {
            if (other$sysServiceProviderId == null) {
                return true;
            }
        }
        else if (this$sysServiceProviderId.equals(other$sysServiceProviderId)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof AlipayConfig;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $appId = this.getAppId();
        result = result * 59 + (($appId == null) ? 43 : $appId.hashCode());
        final Object $charset = this.getCharset();
        result = result * 59 + (($charset == null) ? 43 : $charset.hashCode());
        final Object $format = this.getFormat();
        result = result * 59 + (($format == null) ? 43 : $format.hashCode());
        final Object $gatewayUrl = this.getGatewayUrl();
        result = result * 59 + (($gatewayUrl == null) ? 43 : $gatewayUrl.hashCode());
        final Object $notifyUrl = this.getNotifyUrl();
        result = result * 59 + (($notifyUrl == null) ? 43 : $notifyUrl.hashCode());
        final Object $privateKey = this.getPrivateKey();
        result = result * 59 + (($privateKey == null) ? 43 : $privateKey.hashCode());
        final Object $publicKey = this.getPublicKey();
        result = result * 59 + (($publicKey == null) ? 43 : $publicKey.hashCode());
        final Object $returnUrl = this.getReturnUrl();
        result = result * 59 + (($returnUrl == null) ? 43 : $returnUrl.hashCode());
        final Object $signType = this.getSignType();
        result = result * 59 + (($signType == null) ? 43 : $signType.hashCode());
        final Object $sysServiceProviderId = this.getSysServiceProviderId();
        result = result * 59 + (($sysServiceProviderId == null) ? 43 : $sysServiceProviderId.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "AlipayConfig(id=" + this.getId() + ", appId=" + this.getAppId() + ", charset=" + this.getCharset() + ", format=" + this.getFormat() + ", gatewayUrl=" + this.getGatewayUrl() + ", notifyUrl=" + this.getNotifyUrl() + ", privateKey=" + this.getPrivateKey() + ", publicKey=" + this.getPublicKey() + ", returnUrl=" + this.getReturnUrl() + ", signType=" + this.getSignType() + ", sysServiceProviderId=" + this.getSysServiceProviderId() + ")";
    }
}
